package com.market.goods.service;

import com.market.goods.dao.es.MarketGoodsDocument;
import com.market.goods.dao.mongo.MarketGoodsDetails;
import com.market.goods.dao.po.MarketGoodsPO;
import com.market.goods.dao.po.QueryJoinPO;
import com.market.goods.web.vo.MarketGoodsVO;

import java.io.IOException;
import java.util.List;

public interface MarketGoodsService {
    void insertSelective(MarketGoodsPO marketGoodsPO);
    void inserBulktEs(String indexName, List<Object> objects);

    List<MarketGoodsPO> qryMarketGoodsByShopId(String shopId);

    MarketGoodsPO qryMarketGoodsByGoodId(String goodId);

    List<QueryJoinPO> queryJoin(List<String> goodIds);

    List<MarketGoodsVO> queryByEs(MarketGoodsVO marketGoodsVO);

    void insertMarketGoodsDetailsForMongodb(MarketGoodsDetails marketGoodsDetails);

}
